# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=scummvm
pkgver=2.5.1
pkgrel=0
pkgdesc="Engine for several graphical adventure games"
url="https://www.scummvm.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	alsa-lib-dev
	faad2-dev
	flac-dev
	fluidsynth-dev
	freetype-dev
	glu-dev
	jpeg-dev
	libogg-dev
	libpng-dev
	libtheora-dev
	libvorbis-dev
	sdl2-dev
	zlib-dev
	"
subpackages="$pkgname-doc"
source="
	https://downloads.scummvm.org/frs/scummvm/$pkgver/scummvm-$pkgver.tar.gz
	disable-forbidden.patch
	"

build() {
	./configure \
		--prefix=/usr \
		--enable-all-engines \
		--enable-c++11 \
		--enable-release
	make
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="
af518e89f0f095c16f2d4ad314bb96f4e2c299b9a1a324fabf1ce49529c756625b190f8abd5fb47873c0243505284bc029c814c7cc0fbda0131ce6488f1c87e2  scummvm-2.5.1.tar.gz
a44de9540f18893b49b02c083694f8eb974e8ddead6d0c6b0453760d7452367cfcc4613215fab2223da8859ce389a53dd2f110cf3389798761c95efafd886542  disable-forbidden.patch
"
